﻿#include "topo_shell.h"

CAGD::TopoShell::TopoShell() : m_lump(nullptr)
{
}

CAGD::TopoShell::~TopoShell()
{
    for (auto f : m_faces)
        delete f;
    for (auto w : m_wires)
        delete w;
}

CAGD::TopoLump *&CAGD::TopoShell::Lump()
{
    return m_lump;
}

std::vector<CAGD::TopoFace *> &CAGD::TopoShell::Faces()
{
    return m_faces;
}

std::vector<CAGD::TopoWire *> &CAGD::TopoShell::Wires()
{
    return m_wires;
}

CAGD::TopoType CAGD::TopoShell::Type() const
{
    return TopoType::SHELL;
}
